package cn.java81.single;

/**
 * @author oldliu
 * @since 1.0
 */
public class Sun {
    //饿汉
    private static Sun inst=new Sun();
    private Sun(){
        System.out.println("太阳被构建出来了。。。");
    }
    public static Sun getInstance(){
        return inst;
    }
    public void shine(){
        System.out.println("太阳发着光芒万丈");
    }
}
